<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
	<head>
		<!-- meta info here -->
		<title>Quirtia Belli</title>
		<link rel="stylesheet" type="text/css" media="screen" href="style.css" />
		<script type="text/javascript" src="game.js" ></script>
		<script type="text/javascript" src="room.js" ></script>
		<script type="text/javascript">
			if(window.XMLHttpRequest) {
					xmlhttp = new XMLHttpRequest()
			}
			xmlhttp.open("GET", "map.xml", false);
			xmlhttp.send();
			xmlDoc = xmlhttp.responseXML;
			
			var x = getElementsByTagName("room");
			var myRooms = new Array();
			
			for(i = 0; i < x.length; i++) 
			{
				myRooms[i] = new room(x[i].getElementsByTagName("n")[0].childNodes[0].nodeValue,
									  x[i].getElementsByTagName("ne")[0].childNodes[0].nodeValue,
									  x[i].getElementsByTagName("e")[0].childNodes[0].nodeValue,
									  x[i].getElementsByTagName("se")[0].childNodes[0].nodeValue,
									  x[i].getElementsByTagName("s")[0].childNodes[0].nodeValue,
									  x[i].getElementsByTagName("sw")[0].childNodes[0].nodeValue,
									  x[i].getElementsByTagName("w")[0].childNodes[0].nodeValue,
									  x[i].getElementsByTagName("nw")[0].childNodes[0].nodeValue);
				myRooms[i].setDescription(x[i].getElementsByTagName("description")[0].childNodes[0].nodeValue);
			}
			
			setCurrentRoom(myRooms[0], myRooms[0].getDescription());
			
		</script>

	</head>
	<body>
		<div id="menu">
			<div id="title">
				<h1>Quirtia Belli</h1>
			</div>
		</div>
		<div id="output">
			
		</div>
		<div id="input">
		<textarea id="textInput" onkeypress="if(event.keyCode==13 && this.value!=''){ execute(this.value); this.value = ''; }"></textarea>
		</div>
	</body>
</html>